<?php

namespace app\admin\model;

use think\Model;


class AdminSalaryBenchmarkItem extends Model
{
    // 表名
    protected $name = 'admin_salary_benchmark_item';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;

    // 定义时间戳字段名
    protected $createTime = false;
    protected $updateTime = false;
    protected $deleteTime = false;

    // 追加属性
    protected $append = [

    ];


    public function salary()
    {
        return $this->hasOne(SalaryBenchmark::class, 'id', 'salary_benchmark_id')->setEagerlyType(0);
    }

    public function item()
    {
        return $this->hasOne(SalaryBenchmarkItem::class, 'id', 'salary_benchmark_item_id')->setEagerlyType(0);
    }






}
